//
//  CustomCollectionViewCell.swift
//  FZSFImageBrowser-Example
//
//  Created by 王欣 on 2018/4/20.
//  Copyright © 2018年 王欣. All rights reserved.
//

import Foundation
import UIKit

class CustomCollectionViewCell: UICollectionViewCell {
    var img :UIImageView!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupSubviews()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    func setupSubviews() {
        img = UIImageView.init();
        img.contentMode = .scaleAspectFit
        addSubview(img);
//        img.backgroundColor = UIColor.yellow;
        img.snp.makeConstraints { (make) in
            make.edges.equalToSuperview();
        }
        
    }
    
}
